[PATCH] imsm: FIX: indicate that metadada has to be written
During adding spare disks to raid0, spare metadata is not written.
This is due to exit form sync_metadata() on empty updates_pending flag.
When mdmon is absent indicate sync_metadata() to flush changes to disks.
Signed-off-by: Adam Kwolek <adam.kwolek [at] intel.com>
---
super-intel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 44c100b..acd7571 100644
--- a/super-intel.c
+++ b/super-intel.c
[at] [at] -3838,6 +3838,7 [at] [at] static int add_to_super_imsm(struct supertype *st, mdu_disk_info_t *dk,
} else {
dd->next = super->disks;
super->disks = dd;
+ super->updates_pending++;
}
return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] imsm: FIX: indicate that metadada has to be written
On Fri, 18 Mar 2011 10:28:22 +0100 Adam Kwolek <adam.kwolek [at] intel.com> wrote:
> During adding spare disks to raid0, spare metadata is not written.
> This is due to exit form sync_metadata() on empty updates_pending flag.
>
> When mdmon is absent indicate sync_metadata() to flush changes to disks.
>
> Signed-off-by: Adam Kwolek <adam.kwolek [at] intel.com>
> ---
>
> super-intel.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/super-intel.c b/super-intel.c
> index 44c100b..acd7571 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> [at] [at] -3838,6 +3838,7 [at] [at] static int add_to_super_imsm(struct supertype *st, mdu_disk_info_t *dk,
> } else {
> dd->next = super->disks;
> super->disks = dd;
> + super->updates_pending++;
> }
>
> return 0;
Applied, thanks.
NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html